
using System;

namespace MyWebPagesStarterKit.Sitemaps
{
    public class SitemapWriterException : Exception
    {
        private readonly string _siteMapNodeKey;

        public SitemapWriterException(string message, string siteMapNodeKey) : this(message, siteMapNodeKey, null)
        {
        }

        public SitemapWriterException(string message, string siteMapNodeKey, Exception innerException) : base(message, innerException)
        {
            this._siteMapNodeKey = siteMapNodeKey;
        }

        public string SiteMapNodeKey
        {
            get
            {
                return this._siteMapNodeKey;
            }
        }
    }
}
